package com.triones.api.entity.interlace.dto;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * interlace预算交易记录
 */
@TableName(value = "tr_interlace_budget_transaction")
@Data
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class InterlaceBudgetTransactionDO {
    @TableId(value = "id")
    private Long id;
    /**
     * 用户id
     */
    private Long uid;
    /**
     * interlace账户id
     */
    private String accountId;
    /**
     * 响应id
     */
    private String rid;
    /**
     * 预算id
     */
    private String budgetId;
    /**
     * 预算卡id
     */
    private String cardId;
    /**
     * 交易金额
     */
    private BigDecimal amount;
    /**
     * 费用金额
     */
    private BigDecimal fee;
    /**
     * 交易类型 Credit：退款、Consumption：预算消费、TransferIn：转入预算、TransferOut：预算转出、Fee_Consumption：交易授权费、Declined_Fee：拒绝收费、Reversal：逆转、CreateCardFee：开卡费
     */
    private String type;
    /**
     * 客户端交易ID
     */
    private String clientTransactionId;
    /**
     * 交易状态 Pending、Closed、Fail
     */
    private String status;
    /**
     * 交易时间
     */
    private Long transactionTime;
    /**
     * 创建时间
     */
    private Long createTime;
    /**
     * 更新时间
     */
    private Long updateTime;
}
